﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Data.Entitys
{
    public class BaseEntity
    {
        /// <summary>
        /// 创建人id
        /// </summary>
        [Column("CREATED_BY")]
        [MaxLength(32)]
        public string CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CREATED_TIME")]
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人id
        /// </summary>
        [Column("UPDATED_BY")]
        [MaxLength(32)]
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("UPDATED_TIME")]
        public DateTime? UpdatedTime { get; set; }
    }
}
